package com.banggood.upms.bean.vo;

import com.banggood.upms.bean.vo.validation.AdjustGroup;
import lombok.*;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.List;

/**
 * @author XuChuangFeng
 */
@Data
public class TreeTreeVo implements Serializable {

    private String treeTreeId;

    @NotNull(message = "{validation.TreeTreeVo.fromTreeId.NotNull}", groups = AdjustGroup.class)
    private String fromTreeId;

    private String toTreeId;

    @NotNull(message = "{validation.TreeTreeVo.toTreeType.NotNull}", groups = AdjustGroup.class)
    @Pattern(regexp = "(ROLE)", message = "{validation.TreeTreeVo.toTreeType.Pattern}", groups = {AdjustGroup.class})
    private String toTreeType;

    //添加操作的权限ID列表
    private List<String> newToTreeIds;
}
